package com.example.rest;

import com.example.Comments;
import io.smallrye.mutiny.Uni;
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;

@Path("/client2")
@RegisterRestClient
public interface Client2Service {

    @GET
    @Path("/{id}")
    public Uni<Comments> get(@PathParam("id") Integer id);
    
    @GET
    @Path("get2/{id}")
    public Uni<Integer> get2(@PathParam("id") Integer id);
}
